package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
    //分页查询
    Page<Dish> findByPage(String name, Integer pageNum, Integer pageSize);

    //保存菜品
    void save(Dish dish);

    //根据id回显
    Dish findById(Long id);

    //修改
    void update(Dish dish);

    //根据id删除
    void deleteByIds(Long[] ids);

    //菜品停售更新
    void updateByStatus(Long[] ids, Integer sales);

    //查询寻指定分类下的指定状态的菜品列表
    List<Dish> findList(Long categoryId, Integer status, String name);
}
